package com.turtle.learning.contents.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * RocketMQ事务日志表
 *
 * @author turtle
 * @since 2020-04-30
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "RocketmqTransactionLog对象", description = "RocketMQ事务日志表")
public class RocketmqTransactionLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "事务id")
    @TableField("transaction_Id")
    private String transactionId;

    @ApiModelProperty(value = "日志")
    private String log;


}
